Skip to content

Fix version scheme: 3-digit fraction, not 4 - #353

Merged
dspreadbury merged 1 commit into
gh-pagesfrom
fix-font-version-scheme
Aug 7, 2026
Merged

dspreadbury merged 1 commit into
gh-pagesfrom
fix-font-version-scheme

Conversation

@dspreadbury

Copy link
Copy Markdown
Contributor

Summary

`head.fontRevision` is a Fixed 16.16 number, not a string - it genuinely cannot distinguish `1.480` from `1.4800`. The previous 4-digit scheme's trailing "build" digit was never actually recoverable once written to the binary; every tool that reads `fontRevision` back rounds/truncates to the ecosystem's standard 3 digits (confirmed: our own 1.4900 build's raw fontRevision reports as 1.490 via third-party tooling). See steinbergmedia/bravura#102.

New scheme: `stem` is one digit (e.g. `"1.4"`), `build` is two digits (00-99), giving exactly a 3-digit fraction - `stem "1.4" + build 80 => "1.480"`. Starting `build` at 80 rather than 0 for this stem keeps the first release under the corrected scheme numerically above the last real release under the old numbering (1.456), so nothing mistakes it for a downgrade, while still leaving 20 revisions of headroom before the next stem bump.

Test plan

  • Rebuilt Bravura.otf, confirmed `fontRevision` rounds cleanly to 1.48, name-table Version string reads "Version 1.480", Bravura.json's `fontVersion` is 1.48 - all consistent, no truncation ambiguity
  • `tools/generate.py --check`, `sync_ufo_glyphs.py --check`, `check_font_version.py`, schema validation all pass

head.fontRevision is a Fixed 16.16 number, not a string - it genuinely
cannot distinguish "1.480" from "1.4800", so the previous 4-digit scheme's
build number was never actually recoverable once written. Every tool that
reads fontRevision back rounds/truncates to the ecosystem's standard 3
digits, so what shipped as 1.4900 reports back as 1.490 in third-party
tooling. See steinbergmedia/bravura#102.

New scheme: stem is one digit (e.g. "1.4"), build is two digits (00-99),
giving exactly a 3-digit fraction. Starting build at 80 rather than 0
keeps this first release under the new scheme numerically above the last
real release under the old numbering (1.456), so nothing mistakes it for
a downgrade, while still leaving 20 revisions of headroom before the next
stem bump. First version under the corrected scheme: 1.480.
@dspreadbury dspreadbury self-assigned this Aug 7, 2026
@dspreadbury dspreadbury added this to the SMuFL 1.5 milestone Aug 7, 2026
@dspreadbury
dspreadbury merged commit 3d313f5 into gh-pages Aug 7, 2026
2 checks passed
@dspreadbury
dspreadbury deleted the fix-font-version-scheme branch August 7, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant